import { ref, reactive } from "vue";
export default function() {
    const orderValue = ref("time_desc")
    const visibleValue = ref(2)
    const statusValue = reactive([])
    const typeValue = reactive([])

    const OrderOptions = [{
            value: "hot",
            text: "热度排序"
        },
        {
            value: "time_asc",
            text: "时间升序",
        },
        {
            value: "time_desc",
            text: "时间降序",
        }
    ]
    const VisibleOptions = [{
            value: 2,
            text: "公开"
        },
        {
            value: 1,
            text: "同校",
        }
    ]
    const statusOption = [{
            value: 0,
            text: "筹备中"
        },
        {
            value: 1,
            text: "开发中"
        },
        {
            value: 2,
            text: "已完成"
        }
    ]
    const typeOption = [{
            value: 0,
            text: "个人项目"
        },
        {
            value: 1,
            text: "参赛项目"
        },
        {
            value: 2,
            text: "课程项目"
        },
        {
            value: 3,
            text: "其他"
        }
    ]
    return {
        orderValue,
        visibleValue,
        statusValue,
        typeValue,
        OrderOptions,
        VisibleOptions,
        statusOption,
        typeOption,
    }
}